import { IsNotEmpty, IsNumber, IsString } from "class-validator";
import { Category } from "../category.entity";

export class CreateBookDto {
  @IsString()
  @IsNotEmpty()
  fileName: string;

  @IsString()
  cover: string;

  @IsString()
  title: string;

  @IsString()
  author: string;

  @IsString()
  publisher: string;

  @IsNumber()
  category: Category;

  @IsString()
  language: string;

  @IsString()
  rootFile: string;

  createUser: string;

  createDt: number;
}
